package com.ps.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 巡检任务主表
 * </p>
 *
 * @author ${author}
 * @since 2020-12-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ps_inspectiontask_main")
public class InspectiontaskMain implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 主键ID
     */
    private Integer userId;

    /**
     * 巡检任务编号
     */
    @TableField("inspectionTaskCode")
    private String inspectiontaskcode;

    /**
     * 巡检任务名称
     */
    @TableField("inspectionTaskName")
    private String inspectiontaskname;

    /**
     * 所属线路ID
     */
    @TableField("lineId")
    private Integer lineid;

    /**
     * 起始杆号ID
     */
    @TableField("startPole")
    private Integer startpole;

    /**
     * 起始杆号CODE
     */
    @TableField("startPoleCode")
    private String startpolecode;

    /**
     * 终止杆号ID
     */
    @TableField("endPole")
    private Integer endpole;

    /**
     * 终止杆号CODE
     */
    @TableField("endPoleCode")
    private String endpolecode;

    /**
     * 下发人code
     */
    @TableField("issuedByCode")
    private String issuedbycode;

    /**
     * 下发人名称
     */
    @TableField("issuedByName")
    private String issuedbyname;

    /**
     * 任务下发时间
     */
    @TableField("issuedTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private java.time.LocalDateTime issuedtime;

    /**
     * 任务状态ID
     */
    @TableField("taskStatus")
    private Integer taskstatus;

    /**
     * 任务完成时间
     */
    @TableField("finishTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private java.time.LocalDateTime finishtime;

    /**
     * 备注
     */
    private String common;

    /**
     * 创建时间
     */
    @TableField("creationTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private java.time.LocalDateTime creationtime;

    /**
     * 创建人
     */
    @TableField("createdBy")
    private String createdby;

    /**
     * 最后修改时间
     */
    @TableField("lastUpdateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private java.time.LocalDateTime lastupdatetime;


}
